package com.ssy.lingxi.platform.template.service.controller.web;

import com.ssy.lingxi.common.controller.BaseController;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.platform.template.service.entity.adorn.ActivityPage;
import com.ssy.lingxi.platform.template.service.model.dto.common.IdDTO;
import com.ssy.lingxi.platform.template.service.service.web.ActivityPageWebService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * @menu web - 活动页
 * @author fhj
 * @version 2.0.0
 * @date 2021/09/07
 */
@Api(tags = "web - 活动页")
@RestController
@RequestMapping("/template/web/activityPage")
public class ActivityPageWebController extends BaseController {

    @Resource
    private ActivityPageWebService activityPageWebService;

    @ApiOperation(value = "详情")
    @GetMapping(value = "/getDetail")
    public Wrapper<ActivityPage> get(@Valid IdDTO dto) {
        return activityPageWebService.getDetail(dto);
    }
}
